home *** CD-ROM | disk | FTP | other *** search
- BRESET ReadMe.TXT
- ==============================================================================
- V 1.2, 2/5/94, John C. Leon
- ------------------------------------------------------------------------------
-
- BRESET provides a flexible way to reset network workstation Btrieve
- connections, selectively or en masse. THIS IS A POTENTIALLY DISRUPTIVE
- OPERATION. BRESET MUST BE USED WITH EXTREME CAUTION. AUTHOR TAKES ABSOLUTELY
- NO RESPONSIBILITY FOR RESULTS OBTAINED WITH THIS PROGRAM. Due to the
- potentially catastrophic results of improper use of this program, and in the
- spirit of sharing, full C++ source is included in this distribution,
- including the source for the pieces of the BTC Class Library used in this
- program.
-
- HOW BRESET CAME TO BE
- ---------------------
- This program has been in daily use in my work environment for over one year.
- We run several large, mission-critical applications that use Brequest and the
- Btrieve NLM extensively. Numerous nightly batch processes require exclusive
- access to various Btrieve files. Despite all requests, our users can't be
- relied upon to logoff nightly, and we chose not to enforce time restrictions
- on them. Since the most critical application is "closed" each night (it's a
- financial trading room app), no user will be accessing that particular app,
- but may be using any one or more related inquiry tools. Thus, forcing a reset
- of their Btrieve connection before running our batches would at worst be an
- irritation than a disaster. BRESET was the answer, providing interesting
- flexibility ---
-
- USES
- ----
- BRESET is command-line driven, but makes use of an ASCII file that must be
- named BRESET.NOT.
-
- 1. TO RESET YOUR OWN WORKSTATION, specify -1 on the command line.
- Example: BRESET -1
-
- 2. TO RESET A SINGLE WORKSTATION, specify the Netware connection number.
- Example: BRESET 27
-
- 3. TO RESET ALL WORKSTATIONS, simply do not provide any parameters, and do
- NOT have a BRESET.NOT file in the default directory. If BRESET.NOT is
- present, no harm will be done, but names in that file will not have their
- connection reset.
-
- 4. TO RESET ALL BUT SELECTED USERS, create a text file named BRESET.NOT that
- must be in the default directory, and do not specify any command-line
- parameters (other than /B, see below). Add the LOGIN NAMES of the users
- who should not be reset to this file, one per line (case is insignificant).
- A sample BRESET.NOT is included in this distribution.
-
- 5. Note that a batch mode switch exists to override the requirement for user-
- confirmation before performing #3 or #4 above. This is useful when using
- BRESET in a batch file. Specifying a parameter of /b bypasses the user-
- confirmation requirement.
- 6. As written, the program supports a maximum of 250 exclusions.
- 7. If a user listed in BRESET.NOT has multiple active connections, then none
- of the connections for that user will be reset.
- 8. BRESET outputs to standard output a list of all user names excluded from
- reset, if any, and a count of their current connections.
-
-
- REQUIREMENTS
- ------------
- 1. Server must be running the Btrieve NLM, and you must be running Brequest.
- This program cannot distinguish between Brequest and Btrieve ... it's up
- to you. BRESET will abort with a message if neither Brequest or Btrieve
- are loaded.
- 2. You must have console operator privileges on your server, and must have
- supervisor rights to the current directory. BRESET will abort with a
- message if these conditions are not met.
- 3. The current directory must be on a network drive. BRESET will abort with
- a message if this condition is not met.
-
-
- PARTING SHOTS
- -------------
- Comments, constructive criticism and suggestions welcome. Complete source,
- docs, examples, etc for the BTC Class Library can be made available to you
- upon request at no cost if you have any interest. BTC's been a lifesaver to
- me for Btrieve programming!
-
- John C. Leon Residence: 713-359-3641
- 3807 Wood Gardens Court Office: 713-216-4007
- Kingwood, TX 77339 Fax: 713-216-2052
- CIS: 72426,2077
- Internet: 72426.2077@compuserve.com
-